package cate.common.table.farm.dailyfb;

import cate.common.table.ESheet;
import cate.common.table.d.GDDailyFb;
import easy.java.dev.note.NoteClass;

import java.util.ArrayList;
import java.util.List;

@NoteClass(value = "副本类型")
public class DailyFbTypeSheet extends ESheet<DailyFbTypeRow> {
    @Override
    public String getSheetName() {
        return "功能";
    }

    /**
     * 获取开启列表
     */
    public List<Integer> getOpenList() {
        List<Integer> types = new ArrayList<>();
        getList()
                .stream()
                .filter(row -> row.open == GDDailyFb.FB_OPEN)
                .mapToInt(row -> row.id)
                .forEach(types::add);
        return types;
    }
}
